package top.xiaoshuaila.service;

import top.xiaoshuaila.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import top.xiaoshuaila.pojo.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 小帅啦
 * @since 2021-05-02
 */
public interface IAdminService extends IService<Admin> {

    //验证登录,返回一个统一返回对象RespBean
    RespBean login(String username, String password, HttpServletRequest request);

    //通过username获去对应的Admin对象
    Admin getAdminByUserName(String username);
}
